package com.ant.storage.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author hzd
 * @since 2024-06-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Bookkeeping对象", description="")
public class Bookkeeping implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("issue_number")
    private Integer issueNumber;

    @TableField("serial_number")
    private Integer serialNumber;

    @TableField("bookkeeping_id")
    private String bookkeepingId;

    @TableField("project_total")
    private BigDecimal projectTotal;

    @TableField("creator_by")
    private String creatorBy;

    @TableField("creator_time")
    private Date creatorTime;

    @TableField(exist = false)
    private List<BookkeepingDetails> details;

}
